#!/usr/bin/env coffee

export default new Proxy(
  {}
  {
    get:(self, name)=>
      (id)=>
        o = {}
        o[name] = deviceId: { exact: id }
        navigator.mediaDevices.getUserMedia o
  }
)
